/**
 * 
 */
package com.bargate.domain.spring.expression;

import java.awt.Color;

///CLOVER:OFF
public class Fruit {
	public String name; // accessible as property field
	public Color color; // accessible as property through getter/setter
	public String colorName; // accessible as property through getter/setter
	public int stringscount = -1;
	
	public Fruit(String name, Color color, String colorName) {
		this.name = name;
		this.color = color;
		this.colorName = colorName;
	}

	public Color getColor() {
		return color;
	}
	
	public Fruit(String... strings) {
		stringscount = strings.length;
	}
	
	public Fruit(int i, String... strings) {
		stringscount = i + strings.length;
	}
	
	public int stringscount() {
		return stringscount;
	}

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColorName() {
        return colorName;
    }

    public void setColorName(String colorName) {
        this.colorName = colorName;
    }

    public int getStringscount() {
        return stringscount;
    }

    public void setStringscount(int stringscount) {
        this.stringscount = stringscount;
    }

    public String toString() {
		return "A" + (colorName.startsWith("o") ? "n " : " ") + colorName + " " + name;
	}
}